﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="APIList.aspx.cs" Inherits="site_mag_APIList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1 {
            width: 100%;
        }

        .style2 {
            width: 99%;
        }

        .auto-style1 {
            width: 155px;
        }
    </style>
</head>
<body bgcolor="#DEDDDD" text="#333333" link="#333333" vlink="#333333" alink="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form id="form1" runat="server">

        <hr align="center" width="98%" size="1" noshade>
        <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#3A76AF">
            <tr>
                <td height="23" colspan="2">
                    <div align="center" class="style3"><font color="#FFFFFF"><strong>定时API列表管理</strong></font></div>
                </td>
            </tr>

            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1" colspan="2" style="border: 1px solid #eee;">
                    <table class="style1">

                        <tr style="background: #eee;">
                            <td>API名称</td>
                            <td>地址</td>
                            <td>Http方法</td>
                            <td>内容类型</td>
                            <td>内容</td>
                            <td>计划</td>
                            <td class="auto-style1">状态</td>
                            <td>编辑管理</td>
                            <td>删除选择</td>
                        </tr>
                        <asp:Repeater ID="Repeat1" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%#Eval("apiname") %></td>
                                    <td>
                                        <%#Eval("apiurl") %></td>
                                    <td>
                                        <%#Eval("httpmethod") %></td>
                                    <td>
                                        <%#Eval("contenttype") %></td>
                                    <td>
                                        <%#Eval("content") %></td>
                                    <td>
                                        <%#Eval("apimemo") %></td>
                                    <td>
                                        <%#Eval("status")%></td>
                                    <td>
                                        <a href="AddAPI.aspx?adid=<%#Eval("id")%>">编辑</a></td>
                                    <td>
                                        <asp:CheckBox ID="cbx" runat="server" />
                                        <asp:Label ID="lbl" Text='<%#Eval("id") %>' runat="server" Visible="false"></asp:Label>
                                    </td>

                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td></td>
                            <td></td>

                            <td class="auto-style1"></td>
                            <td colspan="2">
                                <asp:Button ID="btnDel" runat="server" Text="删除选中"
                                    OnClick="btnDel_Click" />
                                &nbsp;
                                <asp:Button ID="btall"
                                    runat="server" Text="全选" OnClick="btall_Click" />
                                &nbsp;<asp:Button ID="nosel"
                                    runat="server" Text="反选" OnClick="btno_Click" />
                                &nbsp;<asp:Button ID="btnoselect"
                                    runat="server" Text="取消" OnClick="btnoselect_Click" /></td>

                        </tr>
                        <tr>
                            <td colspan="2" style="font-size: 12pt; color: #6E050C;">
                                <asp:Label ID="Label1" runat="server" Text="第"></asp:Label>
                                <asp:Label ID="lblcurrent" runat="server" Text=""></asp:Label>
                                <asp:Label ID="Label3" runat="server" Text="页  共"></asp:Label>
                                <asp:Label ID="lblall" runat="server" Text=""></asp:Label>
                                <asp:Label ID="Label5" runat="server" Text="页  "></asp:Label>
                                <asp:LinkButton ID="lblfirst" runat="server" OnClick="lblfirst_Click">首页</asp:LinkButton>
                                <asp:LinkButton ID="lbtnform" runat="server" OnClick="lbtnform_Click">上一页</asp:LinkButton>
                                <asp:LinkButton ID="lbtnnext" runat="server" OnClick="lbtnnext_Click">下一页</asp:LinkButton>
                                <asp:LinkButton ID="lbllast" runat="server" OnClick="lbllast_Click">尾页</asp:LinkButton>

                            </td>
                        </tr>
                    </table>



                </td>
            </tr>
            <tr bgcolor="#FFFFFF">

                <td width="25%" height="25" class="style2"></a>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加API" />
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="25" class="style1" colspan="2">&nbsp;</td>
            </tr>
        </table>
    </form>
</body>
</html>
